/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package myvalidators;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;

/**
 *
 * @author MAKICHI
 */
public class NullValidator implements Validator{

    @Override
    public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException {
        String valu = (String) value;
        if(valu.equals(""))
        {

        }
    }

}
